package com.gl.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gl.order.entity.CustomerInfo;
import com.gl.order.entity.dto.AddCustomerDto;
import com.gl.order.entity.dto.CustomerPageDto;
import com.gl.order.entity.dto.PageDto;
import com.gl.order.entity.vo.CustomerCompanyVo;
import com.gl.order.entity.vo.CustomerPageVo;
import com.gl.order.entity.vo.CustomerVo;

import java.util.List;

/**
 * @Author: liangSY
 * @Date: 2021/6/27
 * @ClassName: CustomerService
 * @Description: CustomerService描述
 */
public interface CustomerService extends IService<CustomerInfo> {

    /**
     * 获取客户个人详情
     * @param id
     * @return
     */
    CustomerVo findById(String id);

    /**
     * 根据销售获取客户列表
     * @param dto
     * @return
     */
    IPage<CustomerVo> customerPageByMarket(CustomerPageDto dto);

    /**
     * 添加客户
     * @param dto
     */
    void add(AddCustomerDto dto);

    /**
     * 分页查询
     * @return
     */
    IPage<CustomerPageVo> getList(PageDto dto, String marketUser);

    /**
     * 删除客户
     * @param id
     * @return
     */
    boolean delCustomer(String id);

}
